package com.heatup.apt.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 储值卡表：cashcard_info
 *
 */
@TableName("cashcard_info")
public class CashcardInfo implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**  */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/** 储值卡名字 */
	@TableField(value = "cashcard_name")
	private String cashcardName;

	/** 储值卡金额 */
	@TableField(value = "cashcard_amt")
	private BigDecimal cashcardAmt;

	/** 领取方式(1:用户输入码，2:系统随机生成) */
	@TableField(value = "get_mode")
	private Integer getMode;

	/** 兑换码 */
	@TableField(value = "cashcard_code")
	private String cashcardCode;

	/** 最大数量（0表示不限量） */
	@TableField(value = "max_count")
	private Integer maxCount;

	/** 已兑换数量 */
	@TableField(value = "geted_count")
	private Integer getedCount;

	/** 兑换模式(1:不限制， 2:使用配置的固定兑换日期） */
	@TableField(value = "change_mode")
	private Integer changeMode;

	/** 兑换生效日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
	@TableField(value = "change_begin_date")
	private Date changeBeginDate;

	/** 兑换失效日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
	@TableField(value = "change_end_date")
	private Date changeEndDate;

	/** 状态（1未开始 2生效中 3已过期 4已作废） */
	@TableField(value = "cashcard_status")
	private Integer cashcardStatus;

	/** 备注信息 */
	private String remark;

	/** 验证人 */
	@TableField(value = "check_name")
	private String checkName;

	/** 验证的手机号码  */
	@TableField(value = "check_phone")
	private String checkPhone;

	/** 验证时间 */
	@TableField(value = "check_time")
	private Date checkTime;

	/** 创建人 */
	@TableField(value = "create_by")
	private String createBy;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 修改人 */
	@TableField(value = "updated_by")
	private String updatedBy;

	/** 修改时间 */
	@TableField(value = "updated_time")
	private Date updatedTime;

	/** 版本号 */
	private Integer version;

	/**
	 * 是否限制一个批次一人一票
	 */
	@TableField(value = "is_one_vote")
	private Integer isOneVote;
	
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCashcardName() {
		return this.cashcardName;
	}

	public void setCashcardName(String cashcardName) {
		this.cashcardName = cashcardName;
	}

	public BigDecimal getCashcardAmt() {
		return this.cashcardAmt;
	}

	public void setCashcardAmt(BigDecimal cashcardAmt) {
		this.cashcardAmt = cashcardAmt;
	}

	public Integer getGetMode() {
		return this.getMode;
	}

	public void setGetMode(Integer getMode) {
		this.getMode = getMode;
	}

	public String getCashcardCode() {
		return this.cashcardCode;
	}

	public void setCashcardCode(String cashcardCode) {
		this.cashcardCode = cashcardCode;
	}

	public Integer getMaxCount() {
		return this.maxCount;
	}

	public void setMaxCount(Integer maxCount) {
		this.maxCount = maxCount;
	}

	public Integer getGetedCount() {
		return this.getedCount;
	}

	public void setGetedCount(Integer getedCount) {
		this.getedCount = getedCount;
	}

	public Integer getChangeMode() {
		return this.changeMode;
	}

	public void setChangeMode(Integer changeMode) {
		this.changeMode = changeMode;
	}

	public Date getChangeBeginDate() {
		return this.changeBeginDate;
	}

	public void setChangeBeginDate(Date changeBeginDate) {
		this.changeBeginDate = changeBeginDate;
	}

	public Date getChangeEndDate() {
		return this.changeEndDate;
	}

	public void setChangeEndDate(Date changeEndDate) {
		this.changeEndDate = changeEndDate;
	}

	public Integer getCashcardStatus() {
		return this.cashcardStatus;
	}

	public void setCashcardStatus(Integer cashcardStatus) {
		this.cashcardStatus = cashcardStatus;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCheckName() {
		return this.checkName;
	}

	public void setCheckName(String checkName) {
		this.checkName = checkName;
	}

	public String getCheckPhone() {
		return this.checkPhone;
	}

	public void setCheckPhone(String checkPhone) {
		this.checkPhone = checkPhone;
	}

	public Date getCheckTime() {
		return this.checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedTime() {
		return this.updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getIsOneVote() {
		return isOneVote;
	}

	public void setIsOneVote(Integer isOneVote) {
		this.isOneVote = isOneVote;
	}
	
	

}
